package cn.silver.module.workflow.controller;

import cn.silver.framework.mybatis.controller.BusController;
import cn.silver.module.workflow.bean.CategoryBean;
import cn.silver.module.workflow.domain.WfCategory;
import cn.silver.module.workflow.param.CategoryParam;
import cn.silver.module.workflow.service.IWfCategoryService;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouxiaobo
 */
@Validated
@RestController
@RequiredArgsConstructor
@Tag(name = "流程管理-流程分类信息管理")
@RequestMapping("/workflow/category")
public class WfCategoryController extends BusController<IWfCategoryService, WfCategory, CategoryParam, CategoryBean> {

    @Override
    @Resource
    public void setBaseService(IWfCategoryService baseService) {
        this.setTitle("流程管理-流程分类信息管理");
        this.setCode("workflow:category");
        this.setPermission("workflow:category");
        this.baseService = baseService;
    }
}
